package cn.ac.iscas.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource("classpath:config/hdfs.properties")
public class HdfsConfig {
    @Value("${hdfs.enable}")
    private Boolean enableHdfs;

    @Value("${hdfs.namenode.address}")
    private String namenodeAddr;

    @Value("${hdfs.namenode.port}")
    private String namenodePort;

    @Value("${hdfs.upload.folder}")
    private String uploadFolder;

    public String getNamenodeAddr() {
        return namenodeAddr;
    }

    public void setNamenodeAddr(String namenodeAddr) {
        this.namenodeAddr = namenodeAddr;
    }

    public String getNamenodePort() {
        return namenodePort;
    }

    public void setNamenodePort(String namenodePort) {
        this.namenodePort = namenodePort;
    }

    public String getUploadFolder() {
        return uploadFolder;
    }

    public void setUploadFolder(String uploadFolder) {
        this.uploadFolder = uploadFolder;
    }

    public Boolean getEnableHdfs() {
        return enableHdfs;
    }

    public void setEnableHdfs(Boolean enableHdfs) {
        this.enableHdfs = enableHdfs;
    }
}
